package com.engr.service.impl;

import com.engr.dao.auth.PermissionDao;
import com.engr.model.Permission;
import com.engr.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: train-shiro
 * @desc: 权限接口
 * @author: lyx
 * @date: 2018-11-11 14:56
 **/
@Service
public class PermissonServiceImpl implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public List<Permission> selectAllByStatus(int status) {

        return permissionDao.findAllByStatus(status);
    }
}
